package com.lsy.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductidIsNull() {
            addCriterion("productId is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("productId is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(Integer value) {
            addCriterion("productId =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(Integer value) {
            addCriterion("productId <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(Integer value) {
            addCriterion("productId >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(Integer value) {
            addCriterion("productId >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(Integer value) {
            addCriterion("productId <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(Integer value) {
            addCriterion("productId <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<Integer> values) {
            addCriterion("productId in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<Integer> values) {
            addCriterion("productId not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(Integer value1, Integer value2) {
            addCriterion("productId between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(Integer value1, Integer value2) {
            addCriterion("productId not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andPnameIsNull() {
            addCriterion("pName is null");
            return (Criteria) this;
        }

        public Criteria andPnameIsNotNull() {
            addCriterion("pName is not null");
            return (Criteria) this;
        }

        public Criteria andPnameEqualTo(String value) {
            addCriterion("pName =", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotEqualTo(String value) {
            addCriterion("pName <>", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThan(String value) {
            addCriterion("pName >", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThanOrEqualTo(String value) {
            addCriterion("pName >=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThan(String value) {
            addCriterion("pName <", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThanOrEqualTo(String value) {
            addCriterion("pName <=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLike(String value) {
            addCriterion("pName like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotLike(String value) {
            addCriterion("pName not like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameIn(List<String> values) {
            addCriterion("pName in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotIn(List<String> values) {
            addCriterion("pName not in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameBetween(String value1, String value2) {
            addCriterion("pName between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotBetween(String value1, String value2) {
            addCriterion("pName not between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPpricetotalIsNull() {
            addCriterion("pPriceTotal is null");
            return (Criteria) this;
        }

        public Criteria andPpricetotalIsNotNull() {
            addCriterion("pPriceTotal is not null");
            return (Criteria) this;
        }

        public Criteria andPpricetotalEqualTo(Long value) {
            addCriterion("pPriceTotal =", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalNotEqualTo(Long value) {
            addCriterion("pPriceTotal <>", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalGreaterThan(Long value) {
            addCriterion("pPriceTotal >", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalGreaterThanOrEqualTo(Long value) {
            addCriterion("pPriceTotal >=", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalLessThan(Long value) {
            addCriterion("pPriceTotal <", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalLessThanOrEqualTo(Long value) {
            addCriterion("pPriceTotal <=", value, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalIn(List<Long> values) {
            addCriterion("pPriceTotal in", values, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalNotIn(List<Long> values) {
            addCriterion("pPriceTotal not in", values, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalBetween(Long value1, Long value2) {
            addCriterion("pPriceTotal between", value1, value2, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPpricetotalNotBetween(Long value1, Long value2) {
            addCriterion("pPriceTotal not between", value1, value2, "ppricetotal");
            return (Criteria) this;
        }

        public Criteria andPrateIsNull() {
            addCriterion("pRate is null");
            return (Criteria) this;
        }

        public Criteria andPrateIsNotNull() {
            addCriterion("pRate is not null");
            return (Criteria) this;
        }

        public Criteria andPrateEqualTo(Byte value) {
            addCriterion("pRate =", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateNotEqualTo(Byte value) {
            addCriterion("pRate <>", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateGreaterThan(Byte value) {
            addCriterion("pRate >", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateGreaterThanOrEqualTo(Byte value) {
            addCriterion("pRate >=", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateLessThan(Byte value) {
            addCriterion("pRate <", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateLessThanOrEqualTo(Byte value) {
            addCriterion("pRate <=", value, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateIn(List<Byte> values) {
            addCriterion("pRate in", values, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateNotIn(List<Byte> values) {
            addCriterion("pRate not in", values, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateBetween(Byte value1, Byte value2) {
            addCriterion("pRate between", value1, value2, "prate");
            return (Criteria) this;
        }

        public Criteria andPrateNotBetween(Byte value1, Byte value2) {
            addCriterion("pRate not between", value1, value2, "prate");
            return (Criteria) this;
        }

        public Criteria andPtimelimitIsNull() {
            addCriterion("pTimeLimit is null");
            return (Criteria) this;
        }

        public Criteria andPtimelimitIsNotNull() {
            addCriterion("pTimeLimit is not null");
            return (Criteria) this;
        }

        public Criteria andPtimelimitEqualTo(Byte value) {
            addCriterion("pTimeLimit =", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitNotEqualTo(Byte value) {
            addCriterion("pTimeLimit <>", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitGreaterThan(Byte value) {
            addCriterion("pTimeLimit >", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitGreaterThanOrEqualTo(Byte value) {
            addCriterion("pTimeLimit >=", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitLessThan(Byte value) {
            addCriterion("pTimeLimit <", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitLessThanOrEqualTo(Byte value) {
            addCriterion("pTimeLimit <=", value, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitIn(List<Byte> values) {
            addCriterion("pTimeLimit in", values, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitNotIn(List<Byte> values) {
            addCriterion("pTimeLimit not in", values, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitBetween(Byte value1, Byte value2) {
            addCriterion("pTimeLimit between", value1, value2, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtimelimitNotBetween(Byte value1, Byte value2) {
            addCriterion("pTimeLimit not between", value1, value2, "ptimelimit");
            return (Criteria) this;
        }

        public Criteria andPtypeIsNull() {
            addCriterion("pType is null");
            return (Criteria) this;
        }

        public Criteria andPtypeIsNotNull() {
            addCriterion("pType is not null");
            return (Criteria) this;
        }

        public Criteria andPtypeEqualTo(Boolean value) {
            addCriterion("pType =", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotEqualTo(Boolean value) {
            addCriterion("pType <>", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeGreaterThan(Boolean value) {
            addCriterion("pType >", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeGreaterThanOrEqualTo(Boolean value) {
            addCriterion("pType >=", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeLessThan(Boolean value) {
            addCriterion("pType <", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeLessThanOrEqualTo(Boolean value) {
            addCriterion("pType <=", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeIn(List<Boolean> values) {
            addCriterion("pType in", values, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotIn(List<Boolean> values) {
            addCriterion("pType not in", values, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeBetween(Boolean value1, Boolean value2) {
            addCriterion("pType between", value1, value2, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotBetween(Boolean value1, Boolean value2) {
            addCriterion("pType not between", value1, value2, "ptype");
            return (Criteria) this;
        }

        public Criteria andPpubtimeIsNull() {
            addCriterion("pPubTime is null");
            return (Criteria) this;
        }

        public Criteria andPpubtimeIsNotNull() {
            addCriterion("pPubTime is not null");
            return (Criteria) this;
        }

        public Criteria andPpubtimeEqualTo(Date value) {
            addCriterion("pPubTime =", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeNotEqualTo(Date value) {
            addCriterion("pPubTime <>", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeGreaterThan(Date value) {
            addCriterion("pPubTime >", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pPubTime >=", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeLessThan(Date value) {
            addCriterion("pPubTime <", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeLessThanOrEqualTo(Date value) {
            addCriterion("pPubTime <=", value, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeIn(List<Date> values) {
            addCriterion("pPubTime in", values, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeNotIn(List<Date> values) {
            addCriterion("pPubTime not in", values, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeBetween(Date value1, Date value2) {
            addCriterion("pPubTime between", value1, value2, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpubtimeNotBetween(Date value1, Date value2) {
            addCriterion("pPubTime not between", value1, value2, "ppubtime");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentIsNull() {
            addCriterion("pPeopleCurrent is null");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentIsNotNull() {
            addCriterion("pPeopleCurrent is not null");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentEqualTo(Integer value) {
            addCriterion("pPeopleCurrent =", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentNotEqualTo(Integer value) {
            addCriterion("pPeopleCurrent <>", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentGreaterThan(Integer value) {
            addCriterion("pPeopleCurrent >", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentGreaterThanOrEqualTo(Integer value) {
            addCriterion("pPeopleCurrent >=", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentLessThan(Integer value) {
            addCriterion("pPeopleCurrent <", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentLessThanOrEqualTo(Integer value) {
            addCriterion("pPeopleCurrent <=", value, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentIn(List<Integer> values) {
            addCriterion("pPeopleCurrent in", values, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentNotIn(List<Integer> values) {
            addCriterion("pPeopleCurrent not in", values, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentBetween(Integer value1, Integer value2) {
            addCriterion("pPeopleCurrent between", value1, value2, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpeoplecurrentNotBetween(Integer value1, Integer value2) {
            addCriterion("pPeopleCurrent not between", value1, value2, "ppeoplecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentIsNull() {
            addCriterion("pPriceCurrent is null");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentIsNotNull() {
            addCriterion("pPriceCurrent is not null");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentEqualTo(Long value) {
            addCriterion("pPriceCurrent =", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentNotEqualTo(Long value) {
            addCriterion("pPriceCurrent <>", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentGreaterThan(Long value) {
            addCriterion("pPriceCurrent >", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentGreaterThanOrEqualTo(Long value) {
            addCriterion("pPriceCurrent >=", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentLessThan(Long value) {
            addCriterion("pPriceCurrent <", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentLessThanOrEqualTo(Long value) {
            addCriterion("pPriceCurrent <=", value, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentIn(List<Long> values) {
            addCriterion("pPriceCurrent in", values, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentNotIn(List<Long> values) {
            addCriterion("pPriceCurrent not in", values, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentBetween(Long value1, Long value2) {
            addCriterion("pPriceCurrent between", value1, value2, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPpricecurrentNotBetween(Long value1, Long value2) {
            addCriterion("pPriceCurrent not between", value1, value2, "ppricecurrent");
            return (Criteria) this;
        }

        public Criteria andPisdoneIsNull() {
            addCriterion("pIsDone is null");
            return (Criteria) this;
        }

        public Criteria andPisdoneIsNotNull() {
            addCriterion("pIsDone is not null");
            return (Criteria) this;
        }

        public Criteria andPisdoneEqualTo(Boolean value) {
            addCriterion("pIsDone =", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneNotEqualTo(Boolean value) {
            addCriterion("pIsDone <>", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneGreaterThan(Boolean value) {
            addCriterion("pIsDone >", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneGreaterThanOrEqualTo(Boolean value) {
            addCriterion("pIsDone >=", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneLessThan(Boolean value) {
            addCriterion("pIsDone <", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneLessThanOrEqualTo(Boolean value) {
            addCriterion("pIsDone <=", value, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneIn(List<Boolean> values) {
            addCriterion("pIsDone in", values, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneNotIn(List<Boolean> values) {
            addCriterion("pIsDone not in", values, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneBetween(Boolean value1, Boolean value2) {
            addCriterion("pIsDone between", value1, value2, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPisdoneNotBetween(Boolean value1, Boolean value2) {
            addCriterion("pIsDone not between", value1, value2, "pisdone");
            return (Criteria) this;
        }

        public Criteria andPdonetimeIsNull() {
            addCriterion("pDoneTime is null");
            return (Criteria) this;
        }

        public Criteria andPdonetimeIsNotNull() {
            addCriterion("pDoneTime is not null");
            return (Criteria) this;
        }

        public Criteria andPdonetimeEqualTo(Date value) {
            addCriterion("pDoneTime =", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeNotEqualTo(Date value) {
            addCriterion("pDoneTime <>", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeGreaterThan(Date value) {
            addCriterion("pDoneTime >", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pDoneTime >=", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeLessThan(Date value) {
            addCriterion("pDoneTime <", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeLessThanOrEqualTo(Date value) {
            addCriterion("pDoneTime <=", value, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeIn(List<Date> values) {
            addCriterion("pDoneTime in", values, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeNotIn(List<Date> values) {
            addCriterion("pDoneTime not in", values, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeBetween(Date value1, Date value2) {
            addCriterion("pDoneTime between", value1, value2, "pdonetime");
            return (Criteria) this;
        }

        public Criteria andPdonetimeNotBetween(Date value1, Date value2) {
            addCriterion("pDoneTime not between", value1, value2, "pdonetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}